<template>
<div class="list_view_detail">
  <img class="filter" :src="detail.coverImgUrl" alt="">
  <div class="header">
    <div @click="$router.go(-1)" class="left">
      <svg class="icon" aria-hidden="true">
        <use xlink:href="#icon-sdf"></use>
      </svg>
      <span>歌单</span>
    </div>
    <div class="right">
      <svg class="icon" aria-hidden="true">
        <use xlink:href="#icon-sousuo"></use>
      </svg>
      <svg class="icon" aria-hidden="true">
        <use xlink:href="#icon-liebiao"></use>
      </svg>
    </div>
  </div>
  
  <div class="content">
    <div class="content_left">
      <div class="playCount">
        <svg class="icon" aria-hidden="true">
          <use xlink:href="#icon-bofang1"></use>
        </svg>
        {{changeValue(detail.playCount)}}
      </div>
      <img :src="detail.coverImgUrl" alt="">
    </div>
    <div class="content_right">
      <h3>{{detail.name}}</h3>
      <div class="autohr">
        <img :src="detail.creator.avatarUrl" alt="">
        <span>{{detail.creator.nickname}}</span>
      </div>
      <p>{{detail.description}}</p>
    </div>
  </div>


  <div class="icon_list">
    <div class="iconItem">
      <svg class="icon" aria-hidden="true">
        <use xlink:href="#icon-liaotian"></use>
      </svg>
      <span>35</span>
    </div>
    <div class="iconItem">
      <svg class="icon" aria-hidden="true">
        <use xlink:href="#icon-fenxiang"></use>
      </svg>
      <span>323</span>
    </div>
    <div class="iconItem">
      <svg class="icon" aria-hidden="true">
        <use xlink:href="#icon-iconset0425"></use>
      </svg>
      <span>下载</span>
    </div>
    <div class="iconItem">
      <svg class="icon" aria-hidden="true">
        <use xlink:href="#icon-duoxuankuang"></use>
      </svg>
      <span>多选</span>
    </div>
  </div>

</div>
</template>

<script>
export default {
  props:['detail'],
  methods:{
    changeValue(num){
      if(num > 100000000){
        return (num/100000000).toFixed(2)+"亿"
      }
      if(num > 10000) {
        return (num/10000).toFixed(2)+"万"
      }
    }
  },
  mounted() {

  }
}
</script>

<style scoped lang="less">
.list_view_detail{
  width: 7.5rem;
  img.filter{
    position: fixed;
    width: 100%;
    height: auto;
    z-index: -1;
    filter: blur(.8rem);
  }
  .header{
    padding: 0 .4rem;
    display: flex;
    justify-content: space-between;
    height:  1.2rem;
    align-items: center;
    .left,.right{
      display: flex;
      justify-content: space-between;
      .icon{
        width: 0.45rem;
        height: 0.45rem;
        color: #fff;
      }
      span{
        color: #fff;
      }
    }
    .left .icon{
      margin-right: .4rem;
    }
    .right .icon{
      margin-left: .4rem;
    }
  }
  .content {
    margin-top: .45rem;
    width: 7.5rem;
    padding: 0 .4rem;
    display: flex;
    justify-content: space-between;
    .content_left{
      width: 2.3rem;
      height: 2.3rem;
      position: relative;
      img{
        width: 100%;
        height: auto;
        border-radius: .2rem;
      }
      .icon{
        width: 0.5rem!important;
        height:0.5rem!important;
        transform: translateY(.1rem);
      }
      .playCount{
        position: absolute;
        right: .2rem;
        top: .2rem;
        color: #fff;
        font-size: 0.20rem;
        height: .4rem;
        line-height: .4rem;
        transform: translateY(-.1rem);
      }
    }
    .content_right{
      width: 4.2rem;
      h3{
        font-size: .32rem;
        color: #fff;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp:2;
        overflow: hidden;
      }
      .autohr{
        margin-top: .15rem;
        display: flex;
        align-items: center;
        img{
          width: 0.5rem;
          height: 0.5rem;
          border-radius: 100%;
          margin-right: 0.22rem;
        }
        span{
          color: #ffffff;
          font-size: .26rem;
        }
      }
      p{
        color: #ccc;
        font-size: 0.24rem;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp:2;
        margin-top: 0.2rem;
      }
    }
  }

  .icon_list{
    margin-top: 1rem;
    display: flex;
    justify-content: space-around;
    align-items: center;
    text-align: center;
    .iconItem{
      display: flex;
      flex-direction: column;
      .icon{
        width: 0.6rem;
        height: 0.6rem;
        fill: #fff;
        color: #fff;
      }
      span{
        font-size: 0.23rem;
        color: #dbd6d6;
        margin-top: 0.1rem;
      }
    }
  }
}


</style>